﻿
@{
    ViewBag.Title = "人员导入";
}

<h1>人员管理 - 导入</h1>
@section scripts{
    <script src="~/Scripts/bs-custom-file-input.min.js"></script>
    <script>
        $(document).ready(function () {
            bsCustomFileInput.init();
        });
    </script>
}
<hr />
<div class="row">
    <div class="col-md-5">
        @using (Html.BeginForm("Upload", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            @Html.ValidationSummary(null, new { @class = "text-danger" })
            <div class="form-group">
                <label class="control-label">导入模板</label>
                <div>
                    <a href="~/Content/人员导入模板.xlsx">下载模板</a>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label">导入文件</label>
                <div class="custom-file">
                    <input type="file" class="custom-file-input" id="postfile" name="postfile" />
                    <label class="custom-file-label" for="postfile" data-browse="浏览">请选择文件</label>
                </div>
            </div>
            <div class="form-group">
                <input type="submit" value="导入" class="btn btn-primary" />
            </div>
        }
    </div>
</div>
